package com.pxmeta.circle.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 用户封禁记录表
 * </p>
 *
 * @author wcl
 * @since 2022-06-19
 */
@TableName("kt_circle_user_ban_log")
@Data
@ApiModel(value = "UserBanLog对象", description = "用户封禁记录表")
public class CircleUserBanLog implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("主键id")
    @TableId(value = "id",type = IdType.ASSIGN_ID)
    private Long id;

    @ApiModelProperty("操作人id")
    private Long userId;

    @ApiModelProperty("封禁人id")
    private Long banUserId;

    @ApiModelProperty("圈子id")
    private Long circleId;

    @ApiModelProperty("封禁时间")
    private Integer time;

    @ApiModelProperty("时间单位 1分钟，2小时，3天，4周，5年")
    private Integer unit;

    @ApiModelProperty("封禁理由")
    private String reason;

    @ApiModelProperty("是否删除")
    @TableLogic
    private Integer isDel;

    @ApiModelProperty("创建时间")
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @ApiModelProperty("修改时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;

}
